Northwoods.GoSilverlight 1.3.5 Assembly
MakeNodeKeyUnique Method
See Also  Send Feedback
Northwoods.GoXam.Model Namespace > GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class : MakeNodeKeyUnique Method

nodedata
This method is called when a duplicate key has been found.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function MakeNodeKeyUnique( _
   ByVal nodedata As NodeType _
) As Boolean
C# 
protected virtual bool MakeNodeKeyUnique( 
   NodeType nodedata
)

Parameters

nodedata

Return Value

true to accept the data as a node after having made the key unique in the model; false to ignore this data.

Remarks

This is used for model discovery. When a node data is added to the NodesSource collection, DoNodeAdded checks for a duplicate key value. If it is a duplicate key, this method is called to either modify the node data to have a unique key, or to return false to avoid adding the data to this model. (However, the duplicate key node data will still be in the NodesSource collection.)

This method is frequently overridden to implement the desired policy for your particular application model.

When the user copies selected nodes into a diagram, it is likely that this method will be called.

Requirements

See Also

© 2012 All Rights Reserved.